package com.blue.wechat.pay.model;

/**
 * 统一下单返回结果
 * 
 * @author zhengjin
 * @date 2015年6月18日
 * 
 */
public class UnifiedOrderResponse
{
	private ResponseCode returnCode; // 返回状态码，SUCCESS/FAIL
	private String returnMsg; // 返回信息

	/* returnCode=SUCCESS */
	private String appid; // 公众账号ID
	private String mchId; // 商户号
	private String deviceInfo; // 设备号
	private String nonceStr; // 随机字符串
	private String sign; // 签名
	private ResponseCode resultCode; // 业务结果，SUCCESS/FAIL
	private String errCode; // 错误代码
	private String errCodeDes; // 错误代码描述

	/* returnCode=SUCCESS && resultCode=SUCCESS */
	private TradeType tradeType; // 交易类型
	private String prepayId; // 预支付交易会话标识
	private String codeUrl; // 二维码链接

	public UnifiedOrderResponse()
	{
	}

	public ResponseCode getReturnCode()
	{
		return returnCode;
	}

	public void setReturnCode(ResponseCode returnCode)
	{
		this.returnCode = returnCode;
	}

	public String getReturnMsg()
	{
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg)
	{
		this.returnMsg = returnMsg;
	}

	public String getAppid()
	{
		return appid;
	}

	public void setAppid(String appid)
	{
		this.appid = appid;
	}

	public String getMchId()
	{
		return mchId;
	}

	public void setMchId(String mchId)
	{
		this.mchId = mchId;
	}

	public String getDeviceInfo()
	{
		return deviceInfo;
	}

	public void setDeviceInfo(String deviceInfo)
	{
		this.deviceInfo = deviceInfo;
	}

	public String getNonceStr()
	{
		return nonceStr;
	}

	public void setNonceStr(String nonceStr)
	{
		this.nonceStr = nonceStr;
	}

	public String getSign()
	{
		return sign;
	}

	public void setSign(String sign)
	{
		this.sign = sign;
	}

	public ResponseCode getResultCode()
	{
		return resultCode;
	}

	public void setResultCode(ResponseCode resultCode)
	{
		this.resultCode = resultCode;
	}

	public String getErrCode()
	{
		return errCode;
	}

	public void setErrCode(String errCode)
	{
		this.errCode = errCode;
	}

	public String getErrCodeDes()
	{
		return errCodeDes;
	}

	public void setErrCodeDes(String errCodeDes)
	{
		this.errCodeDes = errCodeDes;
	}

	public TradeType getTradeType()
	{
		return tradeType;
	}

	public void setTradeType(TradeType tradeType)
	{
		this.tradeType = tradeType;
	}

	public String getPrepayId()
	{
		return prepayId;
	}

	public void setPrepayId(String prepayId)
	{
		this.prepayId = prepayId;
	}

	public String getCodeUrl()
	{
		return codeUrl;
	}

	public void setCodeUrl(String codeUrl)
	{
		this.codeUrl = codeUrl;
	}

}
